﻿<UserControl x:Class="TextAdventures.Quest.EditorControls.ScriptAdder"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:this="clr-namespace:TextAdventures.Quest.EditorControls"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <StackPanel Name="commonButtons" Orientation="Horizontal" Grid.ColumnSpan="2" />
        <WindowsFormsHost Name="treeHost" Grid.ColumnSpan="2" Grid.Row="1">
            <this:WFEditorTree />
        </WindowsFormsHost>
        <Button Grid.Row="2" Name="addButton" Click="addButton_Click" HorizontalAlignment="Left" Padding="10,3,10,3" Margin="2">Add</Button>
        <Button Grid.Row="2" Grid.Column="1" Name="closeButton" Click="closeButton_Click" HorizontalAlignment="Right" Padding="10,3,10,3" Margin="2" IsCancel="True">Cancel</Button>
    </Grid>
</UserControl>
